from . import blue_app
from ..tool.myTool import domain
from spider import vipShop_in,vipShop
from flask import request


@blue_app.route("/shop/goodsList/get")
@domain
def getShopGoodsList():
    return vipShop.goodsList_cache

@blue_app.route("/shop/goods/info",methods=["post"])
@domain
def getGoodsInfo():
    id = request.form.get("id",None)
    if not id:
        return {"msg":"参数异常"}
    return vipShop_in.getGoodsInfo(id)